package autosession

import "errors"

type NotFoundError struct {
	label string
}

func (e *NotFoundError) Error() string {
	return "session: " + e.label + " not found"
}

func IsNotFound(err error) bool {
	if err == nil {
		return false
	}
	var e *NotFoundError
	return errors.As(err, &e)
}
